<include file="Public:pagerForm"/>

<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">            
            <li><a class="add" href="<{:U('Kpi/show_s',array('kpi_id'=>code($kpi_id,1)))}>" target="dialog" mask="true" width='650' height='550'><span>新增项目</span></a></li>                      
            <li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="id[]" href="<{:U('Kpi/del',array('db'=>code('KpiTasks',1)))}>" class="delete"><span>批量删除</span></a></li> 
            <li class="line">line</li>
        </ul>
    </div>
    <table class="table" width="90%" layoutH="75">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="id[]" class="checkboxCtrl"></th>
                <th width="40"  align="center">序号</th>
                <th width="80" >任务</th>
                <th width="100" align="center">计划完成日期</th>
                <th width="100" align="center">实际完成日期</th>
                <th width="240" >任务描述</th>
                <th width="40" align="center" >权重</th>
                <th width="110" align="center">操作</th>
            </tr>
        </thead>
        <tbody>
            <foreach name='list' item="list">
                <tr target="l_id" rel="<{$list.id}>">
                    <td><input name="id[]" value="<{$list.id}>" type="checkbox"></td>
                    <td><{$key+1}></td>
                    <td><{$list.subjects}></td>
                    <td><{$list.completion_data}></td>
                    <td><{$list.actual_completion_data}></td>
                    <td><{$list.modification_record}></td>
                    <td><{$list.percentage}></td>
                    <td>
                        <a href="<{:U('Kpi/show',array('id'=>code($list['id'],1),'sign'=>code('2',1),'db'=>code('KpiTasks',1),'kpi_id'=>code($kpi_id,1)))}>" target="dialog"  width='600' height='500'><span>编辑</span></a> |
                        <a title="确定删除该任务" target="ajaxTodo" href="<{:U('Kpi/del',array('id'=>code($list['id'],1),'db'=>code('KpiTasks',1)))}>" >删除</a>                       
                    </td>
                </tr>
            </foreach>
        </tbody>        
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20">20</option>
                <option value="50">50</option>
                <option value="100">100</option>
                <option value="200">200</option>
            </select>
            <span>条，共<{$totalCount}>条</span>          
        </div>
        <div class="pagination" targetType="navTab" totalCount="<{$totalCount}>" numPerPage="<{$numPerPage}>" pageNumShown="6"  currentPage="<{$currentPage}>"></div>
    </div>
</div><style type="text/css" media="screen">
    .imgs div{height:100px!important;}
</style>
